package com.swagger.swaggerdemo.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @ApiModel： 描述POJO对象
 * @ApiModelProperty 描述POJO对象的属性
 */
@ApiModel
public class User implements Serializable {

    private Long id;

    @ApiModelProperty(name = "用户名")
    private String username;

    @ApiModelProperty(name = "密码")
    private String password;

    public User(Long id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
